package deom1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-23
 * Time: 9:48
 */
public class Main {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        Circle  circle = new Circle();
        String[] shapes = {"circle", "rectangle", "circle", "rectangle"};

        for (String shape : shapes) {
            if (shape.equals("circle")) {
                circle.draw();
            } else if (shape.equals("rectangle")) {
                rectangle.draw();
            }
        }
    }
}
/*

运行：
        圆形！！！
        矩形！！！
        圆形！！！
        矩形！！！
*/
